<?php

class Office_modul  extends CI_Model {

	public function __construct() {
		// Call the Model constructor
		parent::__construct();
	}

	/**
	 * Поиск наглавной главная
	 *
	 * @return void
	 * @author
	 */

	public function request($id = 0) {

		$DB2 = $this -> load -> database('adsent', TRUE, TRUE);

		echo $select = "SELECT  *  FROM  `roffice`    where  id = $id  limit 1;";

		$datass = $DB2 -> query($select);

		$this -> load -> model('search/rent/officed_modul', 'office');
		$data = $this -> office -> req($datass);

		return $data;

	}

}
